package com.coocaa.ops.admin.v1.auth.sys.provider;



import com.coocaa.ops.admin.v1.auth.sys.constant.LoginStatus;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author bijiahao
 * @date : 2019/3/27.
 * @description
 */
public interface ISysAuthorizeProvider {
    /**
     * 登录
     *
     * @param request
     * @param response
     * @param account
     * @param ldapAccount
     * @param pwd
     * @return
     */
    LoginStatus userLogin(HttpServletRequest request, HttpServletResponse response, String account, String ldapAccount, String pwd) throws Exception;

    /**
     * 退出
     * @param request
     * @param response
     */
    void logout(HttpServletRequest request, HttpServletResponse response);
}
